---
layout: m1x_soap
title: Attribute Set Create
---

<h3><a name="product_attribute_set.create-Module%3AProductAttributeSetAPI"></a>Module: Product Attribute Set API</h3>

<h4><a name="product_attribute_set.create-Resource%3Aproductattributeset"></a>Resource: product_attribute_set</h4>


<h5><a name="product_attribute_set.create-Method%3A"></a>Method:</h5>

<ul>
	<li>product_attribute_set.create (SOAP V1)</li>
	<li>catalogProductAttributeSetCreate (SOAP V2)</li>
</ul>


<p>Allows you to create a new attribute set based on another attribute set.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId <br class="atl-forced-newline" /> </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> attributeSetName </td>
<td> Attribute set name </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> skeletonSetId </td>
<td> Attribute set ID basing on which the new attribute set will be created </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> int </td>
<td> setId </td>
<td> ID of the created attribute set </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 100 </td>
<td> Attribute set with requested id does not exist. </td>
</tr>
<tr>
<td> 101 </td>
<td> Invalid data given. </td>
</tr>
<tr>
<td> 102 </td>
<td> Error while creating attribute set. Details in error message. </td>
</tr>
</tbody></table>


<h4><a name="product_attribute_set.create-Examples"></a>Examples</h4>

<h5><a name="product_attribute_set.create-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$setName = "New Attribute Set";
$skeletonId = 4;

$newSetId = $proxy-&gt;call(
    $sessionId,
    "product_attribute_set.create",
    array(
         $setName,
         $skeletonId
    )
);</pre>
		</div>
</div></div>

<h5><a name="product_attribute_set.create-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$attributeSetName = 'New Attribute Set';
$skeletonId = 4;

$result = $client-&gt;catalogProductAttributeSetCreate(
    $sessionId,
    $attributeSetName,
    $skeletonId
);</pre>
		</div>
</div></div>



<h5><a name="product_attribute_set.create-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $proxy-&gt;catalogProductAttributeSetCreate((object)array('sessionId' =&gt; $sessionId-&gt;result, 'attributeSetName' =&gt; 'New Attribute Set', 'skeletonSetId' =&gt; '4'));
var_dump($result-&gt;result);</pre>
		</div>
</div></div>

<?php include(__ROOT__ . 'footer.php'); ?>
